Class WSRedirectURL
java.lang.Object
com.seclore.fs.ws.client.redirect.WSRedirectURL
This is a helper class for generating the redirect URL of the Policy Server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant for Show all Repository.static final intConstant for Show only System Repository.static final intConstant for All Repositories other than System Repositories. -
Constructor Summary
ConstructorsConstructorDescriptionWSRedirectURL(String pPSBaseURL, String pSessionId) This constructor stores the base URL and the Session id in the member variables, that will be used while creating the redirect URLs. -
Method Summary
Modifier and TypeMethodDescriptiongetRedirectURLForAddCredential(boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to add a new Credential.getRedirectURLForEditCredential(long pCredentialId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to update the requested Credential.getRedirectURLForPSHome(int pRepositoryFilter, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal home page URL.getRedirectURLForRedistributeFile(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to redistribute the requested file.getRedirectURLForTransferOwnership(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to transfer ownership of requested file.getRedirectURLForViewActivityLogForFile(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to view the file activity logs.getRedirectURLForViewFileDetails(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to view the requested file details.voidsetSesionId(String pSessionId) Sets the HttpSessionId member variable.
-
Field Details
-
PSP_REPOSITORY_FILTER_SHOW_ALL
public static final int PSP_REPOSITORY_FILTER_SHOW_ALLConstant for Show all Repository.- See Also:
-
PSP_REPOSITORY_FILTER_SHOW_ONLY_SYS_REPO
public static final int PSP_REPOSITORY_FILTER_SHOW_ONLY_SYS_REPOConstant for Show only System Repository.- See Also:
-
PSP_REPOSITORY_FILTER_SKIP_SYS_REPO
public static final int PSP_REPOSITORY_FILTER_SKIP_SYS_REPOConstant for All Repositories other than System Repositories.- See Also:
-
-
Constructor Details
-
WSRedirectURL
This constructor stores the base URL and the Session id in the member variables, that will be used while creating the redirect URLs.- Parameters:
pPSBaseURL- The base URL for the Policy Server.pSessionId- If provided, the session Id will be used to generate the URL. If null then it will not be used.- Throws:
WSClientException- Thrown by the method is the URL provided is not valid.
-
-
Method Details
-
setSesionId
Sets the HttpSessionId member variable.- Parameters:
pSessionId- The id of the session created with the Policy Server.
-
getRedirectURLForPSHome
public String getRedirectURLForPSHome(int pRepositoryFilter, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) throws WSClientException This method returns the Policy Server portal home page URL.- Parameters:
pRepositoryFilter- Repository Filter. Must be one of the value of PSP_REPOSITORY_FILTER_SHOW_... constant.pAllowLogoutFromProtal- Whether to allow the user to logout from the Policy Server or not.pAutoCloseAfterTask- Close the browser window once the user performs the task.- Returns:
- Policy Server portal home page URL.
- Throws:
WSClientException- Thrown by the method if the requested Repository filter is invalid.
-
getRedirectURLForAddCredential
public String getRedirectURLForAddCredential(boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to add a new Credential.- Parameters:
pAllowLogoutFromProtal- Whether to allow the user to logout from the Policy Server or not.pAutoCloseAfterTask- Close the browser window once the user performs the task.- Returns:
- The Policy Server portal URL to add a new Credential.
-
getRedirectURLForEditCredential
public String getRedirectURLForEditCredential(long pCredentialId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to update the requested Credential.- Parameters:
pCredentialId- The id of the Credential to be updated.pAllowLogoutFromProtal- Whether to allow the user to logout from the Policy Server or not.pAutoCloseAfterTask- Close the browser window once the user performs the task.- Returns:
- The Policy Server portal URL to update the requested Credential.
-
getRedirectURLForViewFileDetails
public String getRedirectURLForViewFileDetails(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to view the requested file details.- Parameters:
pFileId- The id of the file requested to view details.pAllowLogoutFromProtal- Whether to allow the user to logout from the Policy Server or not.pAutoCloseAfterTask- Close the browser window once the user performs the task.- Returns:
- The Policy Server portal URL to view the requested file details.
-
getRedirectURLForRedistributeFile
public String getRedirectURLForRedistributeFile(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to redistribute the requested file. Redistributing the File.- Parameters:
pFileId- The id of the file requested to redistribute.pAllowLogoutFromProtal- Whether to allow the user to logout from the Policy Server or not.pAutoCloseAfterTask- Close the browser window once the user performs the task.- Returns:
- The Policy Server portal URL to redistribute the requested file.
-
getRedirectURLForViewActivityLogForFile
public String getRedirectURLForViewActivityLogForFile(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) This method returns the Policy Server portal URL to view the file activity logs.- Parameters:
pFileId- The id of the file requested to view the activity logs.pAllowLogoutFromProtal- Whether to allow the user to logout from the Policy Server or not.pAutoCloseAfterTask- Close the browser window once the user performs the task.- Returns:
- The Policy Server portal URL to view the activity logs for the requested file.
-
getRedirectURLForTransferOwnership
public String getRedirectURLForTransferOwnership(long pFileId, boolean pAllowLogoutFromProtal, boolean pAutoCloseAfterTask) throws WSClientException This method returns the Policy Server portal URL to transfer ownership of requested file.- Parameters:
pFileId- The id of the file requested to transfer the ownership.pAllowLogoutFromProtal- Whether to allow the user to logout from the Policy Server or not.pAutoCloseAfterTask- Close the browser window once the user performs the task.- Returns:
- The Policy Server portal URL to transfer the ownership of the requested file.
- Throws:
WSClientException
-